import os,sys
from twisted.application import service, internet
from twisted.web import static, xmlrpc, resource, server
sys.path.append('.')
sys.path.append('/opt/ude/bin/pam-helper')
from RPC import RPC

def getWebService():
    root = resource.Resource()
    root.putChild('RPC2', RPC())
    s = server.Site(root)
    return internet.TCPServer(9094, s)


application = service.Application("Login Server")
service = getWebService()
service.setServiceParent(application)





































